package com.atguigu.springclou.service;

import org.springframework.stereotype.Component;

/**
 * 统一处理兜底方法
 */
@Component
public class Payment_Global_FallbackMethod implements PaymentHistrixService {
    @Override
    public String paymentInfo_Ok(Integer id) {
        return "Payment_Global_FallbackMethod fall back--->paymentInfo_Ok,服务降级";
    }

    @Override
    public String paymentInfo_timeout(Integer id) {
        return "Payment_Global_FallbackMethod fall back --->paymentInfo_timeout,服务降级";
    }
}
